﻿@model Mailias.UI.Web.Models.HomeIndexViewModel

@{
    ViewBag.Title = Model.Title;
}

@if(Model.IsNotConfigured)
{
    <p>You smtp Server is not confugured. Click @Html.ActionLink("here", "Index", "MailiasSettings" ) to set the ip address and port.</p>
}

<h2>Project Description</h2>
<p>Mailias makes testing of email enabled applications easier for DEVs and QAs. You no longer need to 
have multiple "real" email addresses to test and validate registration and notification features. 
Written in C# this ASP.Net MVC application uses RavenDB Embedded as a document store and hosts a custom SMTP server.</p>

<p>Configure Mailias and update your existing email-enabled application's SMTP server settings are you are ready to go.</p>

<p>Mailias will accept email sent to ANY address (ie: me@mailias) and save the contents as a document in RavenDB.</p>

<p>Point your browser at the Mailias server and you will be shown a list of recent messages that were accepted. 
    You can chose to 'subscribe' to any email recipient (me@mailias) and Mailias will automatically forward any new 
    messages that arrive to your real email address.</p>

@if(Model.MessageCount > 0)
{
    <p>There are currently @Model.MessageCount message(s) in the system.</p>
}

